home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / net / amitcp_ups10.readme < prev    next >
Text File  |  1994-10-08  |  5KB  |  140 lines

  1. Short: Nice little AmiTCP file transmission program
  2. Type: comm/net
  3. Uploader: ch@irb.informatik.uni-dortmund.de
  4. Author: ???, amiga port by ch@irb.informatik.uni-dortmund.de
  5.  
  6. Hello Netters,
  7.  
  8. I wanted to know how difficult it is to create a daemon suitable for
  9. AmiTCP. I liked the little program "ups" we use at the university of
  10. Dortmund for sending files between users and so I took the source
  11. to my amiga.
  12. Here's the result. 
  13.  
  14. Be warned:
  15.     I didn't take much effort in making a clean port but I hope I
  16.     didn't introduce much new bugs :-)
  17.  
  18.  
  19. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  20. ! But as ever: You got what you paid for, use at your own risk.!
  21. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  22.  
  23. Take a look at the original README to see what ups does.
  24.  
  25. Here a short summary:
  26. 1. Send the files 'a', 'b' and 'c' to a <user> on <host>:
  27.     ups user@host a b c
  28. 2. Look for arrived files
  29.     ups -q
  30. 3. Receive files
  31.     ups
  32.     
  33. The port was done using SAS 6.3 and AmiTCP 2.0.
  34.  
  35. Installation on amitcp
  36.  
  37.     1)  Add ups to the table of known ports in amitcp:db/services as follows:
  38.  
  39.     ups    600/tcp
  40.  
  41.     2)  Add ups to the inetd configuration file amitcp:db/inetd.conf:
  42.  
  43.     ups    stream    tcp    nowait    root    amitcp:bin/upsd    upsd
  44.  
  45.     3) Copy ups, upsd and ups-sendmail to amitcp:bin.
  46.  
  47.     4) Set USERNAME in your user-startup to your login name.
  48.        Set UPS_USERS to a colon separated list of users able to 
  49.        receive files via ups.
  50.  
  51.        I use:
  52.         setenv USERNAME alph
  53.         setenv UPS_USERS alph:ch
  54.  
  55.     5) Make an "assign ups-spool: <somewhere>" to your incoming
  56.        spool directory.
  57.     
  58. Changes to the un*x version:
  59.     - Since there's no semi-official port of /etc/password stuff I
  60.       made the following assumptions:
  61.       Sender:
  62.         The name of the sender is obtained from the
  63.         environment variable USERNAME, the name of the
  64.         host from HOSTNAME.
  65.       Receiver:
  66.         The ups daemon will accept incoming files 
  67.         only for users listed in UPS_USERS, e.g. 
  68.         "ups alph@alph3000 mytreasure" will only be legal if
  69.         UPS_USERS contains 'alph' on the host alph3000.
  70.  
  71.     - Since there's no semi-official port of /etc/aliases I disabed
  72.       the alias feature of ups.
  73.     
  74.     - On un*x boxes ups uses mail to inform the user about
  75.       new files. To keep it simple I include a fake sendmail
  76.       (ups-sendmail) which just opens a Console-Window
  77.       containing the mail normally send :-)
  78.       You may replace ups-sendmail with your own program.
  79.       It should accept sendmail-like parameters and will get it's
  80.       Input via stdin.
  81.  
  82. Notes:
  83.     - When sending files between amigas only un*x-like protection bits
  84.       will be preserved. Sending format is un*x-format to be
  85.       compatible with the un*x version.
  86.  
  87.       It should be easy to enhance the protocol to identify
  88.       an amiga on the other side and behave according to that.
  89.  
  90.     - I'm using my s_socket layer instead of changing the read/write
  91.       calls because of pure lazyness.:-) (I used it extensively in my
  92.       port of ncftp)
  93.  
  94. As I said before I didn't put much effort in changing the ups source
  95. so you're welcome to proceed.
  96.  
  97. I hope you enjoy it,
  98.     
  99.     Carsten Heyl
  100.  
  101. You may try to reach me via email at ch@irb.informatik.uni-dortmund.de.
  102.  
  103.  
  104.  
  105.  
  106. ============================= Archive contents =============================
  107.  
  108. Original  Packed Ratio    Date     Time    Name
  109. -------- ------- ----- --------- --------  -------------
  110.       94      69 26.5% 03-Oct-93 16:52:40  amiga/grp.h
  111.        0       0  0.0% 03-Oct-93 15:49:56  amiga/ndbm.h
  112.     8987    3474 61.3% 10-Oct-93 16:31:20  amiga/popen.c
  113.       82      71 13.4% 10-Oct-93 16:31:22  amiga/popen.h
  114.      192     104 45.8% 03-Oct-93 16:05:08  amiga/pwd.h
  115.       28      28  0.0% 02-Oct-93 10:56:24  amiga/RCS_LINK
  116.    10663    2975 72.0% 03-Oct-93 17:48:44  amiga/s_socket.c
  117.     6384    1870 70.7% 03-Oct-93 15:48:38  amiga/s_socket.h
  118.        0       0  0.0% 03-Oct-93 15:51:12  amiga/sys/file.h
  119.        0       0  0.0% 03-Oct-93 15:50:08  amiga/sys/wait.h
  120.      786     412 47.5% 03-Oct-93 18:39:04  amiga/syslog.h
  121.      679     359 47.1% 03-Oct-93 14:29:24  orig/Makefile
  122.     1436     743 48.2% 03-Oct-93 14:29:24  orig/README
  123.     1579     745 52.8% 03-Oct-93 14:29:24  orig/ups.1
  124.    10250    3696 63.9% 03-Oct-93 14:29:24  orig/ups.c
  125.     8129    3040 62.6% 03-Oct-93 14:29:24  orig/upsd.c
  126.     3140    1558 50.3% 10-Oct-93 17:48:04  README.amiga
  127.     1005     548 45.4% 10-Oct-93 17:58:46  SMakefile
  128.      250     149 40.4% 10-Oct-93 16:31:50  sys.h
  129.    28552   16722 41.4% 10-Oct-93 17:54:50  ups
  130.    12696    8041 36.6% 10-Oct-93 17:55:34  ups-sendmail
  131.      735     445 39.4% 10-Oct-93 16:39:48  ups-sendmail.c
  132.    12697    4349 65.7% 10-Oct-93 17:10:24  ups.c
  133.     1948     875 55.0% 10-Oct-93 17:41:34  ups.man
  134.      344     166 51.7% 03-Oct-93 16:11:22  ups_protos.h
  135.    26360   15192 42.3% 10-Oct-93 17:55:26  upsd
  136.    10829    3916 63.8% 10-Oct-93 17:26:54  upsd.c
  137.      322     156 51.5% 03-Oct-93 16:11:52  upsd_protos.h
  138. -------- ------- ----- --------- --------
  139.   148167   69703 52.9% 12-Oct-93 16:28:16   28 files
  140.